package com.解释器模式;

/**
 * @author Fang Ruichuan
 * @date 2022-12-22 20:07
 */

public class SubNonterminalExpression extends TerminalExpression {

    public SubNonterminalExpression(IExpression a, IExpression b) {
        super(a, b);
    }

    @Override
    public int interpret() {
        return this.a.interpret() - this.b.interpret();
    }
}
